package cn.tedu.demo.doy2;


import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test02 {
    @Test
    public void test01(){
        ApplicationContext ac=new ClassPathXmlApplicationContext("applicationContext.xml");
        Person p=(Person)ac.getBean("person");
        System.out.println(p);
        ((ClassPathXmlApplicationContext)ac).close();
    }
}
